package com.healthyeating.manage.domain;

import com.healthyeating.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 私信对象 tb_message
 *
 * @author 段奇乐
 * @date 2024-12-17
 */
public class Message extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 私信id，自增 */
    private Long messageId;

    /** 关联id */
    private Long associationId;

    /** 用户id */
    private Long userId;

    /** 是否展示，Y：展示，N：不展示 */
    private String isShow;

    /** 是否已读，Y：已读，N：未读 */
    private String isRead;

    /** 来源：表名 */
    private String source;

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Long getAssociationId() {
        return associationId;
    }

    public void setAssociationId(Long associationId) {
        this.associationId = associationId;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("messageId", getMessageId())
                .append("associationId", getAssociationId())
                .append("userId", getUserId())
                .append("isShow", getIsShow())
                .append("isRead", getIsRead())
                .append("source", getSource())
                .toString();
    }
}
